<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文章推荐 - 社交阅读平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4263eb;
            --secondary: #36b37e;
            --light-gray: #f8f9fa;
            --dark-gray: #343a40;
            --text-gray: #6c757d;
            --border-color: #e9ecef;
        }
        
        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: #333;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary);
        }
        
        .article-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 1.5rem;
        }
        
        .article-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
        
        .article-author {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 0.75rem;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .post-time {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        .article-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            transition: color 0.2s ease;
        }
        
        .article-title:hover {
            color: var(--primary);
        }
        
        .article-excerpt {
            color: var(--text-gray);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            margin-right: 1.25rem;
        }
        
        .meta-item i {
            margin-right: 4px;
            font-size: 0.9rem;
        }
        
        .article-actions {
            display: flex;
            margin-left: auto;
            gap: 0.5rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .action-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: #e74c3c;
        }
        
        .action-btn.saved {
            color: var(--secondary);
        }
        
        /* 布局样式 */
        .list-layout .article-card {
            display: flex;
            height: 200px;
        }
        
        .list-layout .article-image {
            width: 35%;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
        
        .list-layout .article-image.multi-image {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 2px;
            padding: 2px;
        }
        
        .list-layout .article-image.no-image {
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
        }
        
        .list-layout .article-content {
            width: 65%;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-layout .article-card {
            flex-direction: column;
            height: 100%;
        }
        
        .grid-layout .article-image {
            width: 100%;
            height: 180px;
            position: relative;
            overflow: hidden;
        }
        
        .grid-layout .article-image.multi-image {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 2px;
            padding: 2px;
        }
        
        .grid-layout .article-image.no-image {
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
            height: 180px;
        }
        
        .grid-layout .article-content {
            padding: 1.25rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .featured-layout .article-card {
            height: 380px;
            position: relative;
        }
        
        .featured-layout .article-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        
        .featured-layout .article-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 40%);
        }
        
        .featured-layout .article-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem;
            z-index: 2;
            color: white;
        }
        
        .featured-layout .article-title {
            color: white;
            font-size: 1.75rem;
            margin-bottom: 1rem;
        }
        
        .featured-layout .article-excerpt {
            color: rgba(255,255,255,0.9);
            margin-bottom: 1.25rem;
            max-width: 80%;
        }
        
        .featured-layout .author-name,
        .featured-layout .post-time,
        .featured-layout .article-meta {
            color: rgba(255,255,255,0.85);
        }
        
        .featured-layout .action-btn {
            color: rgba(255,255,255,0.85);
        }
        
        .featured-layout .action-btn:hover {
            color: white;
            background-color: rgba(255,255,255,0.15);
        }
        
        .image-count {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background-color: rgba(0,0,0,0.6);
            color: white;
            font-size: 0.75rem;
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 1;
        }
        
        .image-item {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 2px;
        }
        
        .layout-tabs .nav-link {
            color: var(--text-gray);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
        }
        
        .layout-tabs .nav-link.active {
            color: var(--primary);
            border-bottom: 3px solid var(--primary);
            background-color: transparent;
        }
        
        .category-filter {
            margin-bottom: 1.5rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .category-chip {
            display: inline-block;
            padding: 0.35rem 1rem;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            margin-right: 0.75rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .category-chip:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .category-chip.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        @media (max-width: 768px) {
            .list-layout .article-card {
                flex-direction: column;
                height: auto;
            }
            
            .list-layout .article-image,
            .list-layout .article-content {
                width: 100%;
            }
            
            .list-layout .article-image {
                height: 180px;
            }
            
            .featured-layout .article-card {
                height: 300px;
            }
            
            .featured-layout .article-title {
                font-size: 1.5rem;
            }
            
            .featured-layout .article-excerpt {
                max-width: 100%;
            }
            
            .article-actions {
                margin-left: 0;
                margin-top: 0.5rem;
                width: 100%;
                justify-content: space-around;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <h1 class="mb-5">发现优质内容</h1>
        
        <!-- 分类筛选 -->
        <div class="category-filter">
            <div class="category-chip active">全部</div>
            <div class="category-chip">科技</div>
            <div class="category-chip">文化</div>
            <div class="category-chip">生活</div>
            <div class="category-chip">旅行</div>
            <div class="category-chip">美食</div>
            <div class="category-chip">职场</div>
            <div class="category-chip">艺术</div>
            <div class="category-chip">健康</div>
            <div class="category-chip">教育</div>
        </div>
        
        <!-- 布局切换 -->
        <ul class="nav nav-tabs layout-tabs mb-4">
            <li class="nav-item">
                <button class="nav-link active" data-layout="featured">精选布局</button>
            </li>
            <li class="nav-item">
                <button class="nav-link" data-layout="list">列表布局</button>
            </li>
            <li class="nav-item">
                <button class="nav-link" data-layout="grid">网格布局</button>
            </li>
        </ul>
        
        <!-- 精选布局 -->
        <div class="layout-container featured-layout">
            <h2 class="section-title">今日精选</h2>
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/1200/600?random=1" alt="城市建筑摄影" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=101" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">建筑摄影师林辰</div>
                            <div class="post-time">2小时前 · 摄影</div>
                        </div>
                    </div>
                    <h3 class="article-title">现代建筑中的光影美学：探索城市几何之美</h3>
                    <p class="article-excerpt">本文将带您领略现代建筑设计中的光影运用，从几何结构到材料选择，解析建筑师如何通过光线塑造空间感，以及这些设计如何影响我们的日常生活体验。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 2.4k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 86
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-bookmark"></i> 328
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 542
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <h2 class="section-title mt-5">热门推荐</h2>
            <div class="row">
                <div class="col-md-6">
                    <div class="article-card">
                        <div class="article-image">
                            <img src="https://picsum.photos/600/400?random=2" alt="咖啡制作" class="w-100 h-100 object-cover">
                        </div>
                        <div class="article-content">
                            <div class="article-author">
                                <img src="https://picsum.photos/100/100?random=102" alt="作者头像" class="author-avatar">
                                <div>
                                    <div class="author-name">咖啡师马克</div>
                                    <div class="post-time">昨天 14:30 · 美食</div>
                                </div>
                            </div>
                            <h3 class="article-title">手冲咖啡的水温控制艺术：解锁不同风味层次</h3>
                            <p class="article-excerpt">水温是影响咖啡风味的关键因素之一，本文详细解析不同水温如何提取咖啡中的酸、甜、苦等风味物质，以及如何根据不同咖啡豆调整最佳水温。</p>
                            <div class="article-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i> 1.8k
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i> 64
                                </div>
                                <div class="article-actions">
                                    <button class="action-btn like-btn">
                                        <i class="far fa-heart"></i> 328
                                    </button>
                                    <button class="action-btn save-btn">
                                        <i class="far fa-bookmark"></i> 收藏
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="article-card">
                        <div class="article-image multi-image">
                            <img src="https://picsum.photos/300/300?random=3" alt="旅行照片1" class="image-item">
                            <img src="https://picsum.photos/300/300?random=4" alt="旅行照片2" class="image-item">
                            <img src="https://picsum.photos/300/300?random=5" alt="旅行照片3" class="image-item">
                            <img src="https://picsum.photos/300/300?random=6" alt="旅行照片4" class="image-item">
                            <div class="image-count">4图</div>
                        </div>
                        <div class="article-content">
                            <div class="article-author">
                                <img src="https://picsum.photos/100/100?random=103" alt="作者头像" class="author-avatar">
                                <div>
                                    <div class="author-name">旅行者阿乔</div>
                                    <div class="post-time">3天前 · 旅行</div>
                                </div>
                            </div>
                            <h3 class="article-title">徒步喜马拉雅：在世界屋脊寻找内心平静</h3>
                            <p class="article-excerpt">记录了为期15天的喜马拉雅徒步之旅，从准备工作到沿途见闻，分享高海拔徒步的注意事项和那些令人终生难忘的雪山美景。</p>
                            <div class="article-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i> 3.2k
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i> 124
                                </div>
                                <div class="article-actions">
                                    <button class="action-btn like-btn">
                                        <i class="far fa-heart"></i> 786
                                    </button>
                                    <button class="action-btn save-btn">
                                        <i class="far fa-bookmark"></i> 收藏
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表布局 (默认隐藏) -->
        <div class="layout-container list-layout" style="display: none;">
            <h2 class="section-title">最新文章</h2>
            
            <!-- 单图文章 -->
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/600/400?random=7" alt="职场技能" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=104" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">职场导师李娜</div>
                            <div class="post-time">今天 09:15 · 职场</div>
                        </div>
                    </div>
                    <h3 class="article-title">远程工作效率提升指南：5个实用工具和7个好习惯</h3>
                    <p class="article-excerpt">随着远程工作成为常态，如何保持高效工作状态成为许多人的挑战。本文分享经过实践验证的5个必备工具和7个能显著提升效率的工作习惯，帮助你在远程环境中保持专注和高效。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 986
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 42
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-bookmark"></i> 156
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 215
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图文章 -->
            <div class="article-card">
                <div class="article-image multi-image">
                    <img src="https://picsum.photos/300/300?random=8" alt="美食照片1" class="image-item">
                    <img src="https://picsum.photos/300/300?random=9" alt="美食照片2" class="image-item">
                    <img src="https://picsum.photos/300/300?random=10" alt="美食照片3" class="image-item">
                    <div class="image-count">3图</div>
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=105" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">美食家老王</div>
                            <div class="post-time">昨天 18:40 · 美食</div>
                        </div>
                    </div>
                    <h3 class="article-title">家常川菜的灵魂：详解红油的炼制与3种变化</h3>
                    <p class="article-excerpt">红油是川菜的灵魂所在，不同的炼制方法会产生截然不同的风味。本文详解基础红油的炼制工艺，以及麻辣红油、香辣红油和蒜香红油的变化做法，让你的家常菜瞬间提升一个档次。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 1.5k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 78
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-bookmark"></i> 289
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 426
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 无图文章 -->
            <div class="article-card">
                <div class="article-image no-image">
                    <i class="fas fa-pen-fancy text-4xl"></i>
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=106" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">哲学家张明</div>
                            <div class="post-time">3天前 · 思想</div>
                        </div>
                    </div>
                    <h3 class="article-title">数字化时代的注意力危机：我们如何重新掌控自己的专注</h3>
                    <p class="article-excerpt">在信息爆炸的今天，我们的注意力正被不断切割和分散。本文从心理学和哲学角度分析注意力危机的根源，探讨数字时代的专注之道，以及如何在碎片化世界中保持深度思考的能力。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 2.1k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 156
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-bookmark"></i> 423
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 632
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 单图文章 -->
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/600/400?random=11" alt="科技产品" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=107" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">科技评测师陈工</div>
                            <div class="post-time">4天前 · 科技</div>
                        </div>
                    </div>
                    <h3 class="article-title">AI写作工具深度对比：5款主流产品的优劣势分析</h3>
                    <p class="article-excerpt">随着AI技术的发展，各类AI写作工具层出不穷。本文对目前市场上5款主流AI写作工具进行了为期两周的深度测试，从内容质量、原创性、易用性和价格等维度进行全面对比分析。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 3.5k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 215
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-bookmark"></i> 587
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 943
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 网格布局 (默认隐藏) -->
        <div class="layout-container grid-layout" style="display: none;">
            <!-- 单图文章 -->
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/600/400?random=12" alt="瑜伽练习" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=108" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">瑜伽教练小雅</div>
                            <div class="post-time">今天 10:20 · 健康</div>
                        </div>
                    </div>
                    <h3 class="article-title">办公室5分钟瑜伽：缓解久坐带来的身体不适</h3>
                    <p class="article-excerpt">针对办公室人群设计的简短瑜伽序列，只需5分钟，就能有效缓解颈椎、腰椎压力，改善血液循环，提升工作状态。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 756
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 32
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 187
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图文章 -->
            <div class="article-card">
                <div class="article-image multi-image">
                    <img src="https://picsum.photos/300/300?random=13" alt="摄影作品1" class="image-item">
                    <img src="https://picsum.photos/300/300?random=14" alt="摄影作品2" class="image-item">
                    <img src="https://picsum.photos/300/300?random=15" alt="摄影作品3" class="image-item">
                    <img src="https://picsum.photos/300/300?random=16" alt="摄影作品4" class="image-item">
                    <div class="image-count">4图</div>
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=109" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">街头摄影师阿杰</div>
                            <div class="post-time">昨天 16:45 · 摄影</div>
                        </div>
                    </div>
                    <h3 class="article-title">城市夜景摄影技巧：捕捉夜晚的光影魅力</h3>
                    <p class="article-excerpt">分享城市夜景摄影的设备选择、参数设置和构图技巧，教你如何拍出令人惊艳的城市夜景照片。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 1.2k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 56
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 324
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 无图文章 -->
            <div class="article-card">
                <div class="article-image no-image">
                    <i class="fas fa-book text-4xl"></i>
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=110" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">文学评论家王力</div>
                            <div class="post-time">3天前 · 文化</div>
                        </div>
                    </div>
                    <h3 class="article-title">从《人类简史》看尤瓦尔·赫拉利的历史观</h3>
                    <p class="article-excerpt">深入分析尤瓦尔·赫拉利在《人类简史》中展现的独特历史视角，探讨其对人类发展关键节点的解读及其现实意义。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 892
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 47
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 215
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 单图文章 -->
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/600/400?random=17" alt="园艺" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=111" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">园艺爱好者梅子</div>
                            <div class="post-time">4天前 · 生活</div>
                        </div>
                    </div>
                    <h3 class="article-title">阳台小菜园打造指南：从零开始的蔬菜种植</h3>
                    <p class="article-excerpt">即使只有小小的阳台空间，也能打造一个生机勃勃的小菜园。本文介绍适合阳台种植的蔬菜品种和种植技巧。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 1.1k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 63
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 289
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图文章 -->
            <div class="article-card">
                <div class="article-image multi-image">
                    <img src="https://picsum.photos/300/300?random=18" alt="旅行照片1" class="image-item">
                    <img src="https://picsum.photos/300/300?random=19" alt="旅行照片2" class="image-item">
                    <div class="image-count">2图</div>
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=112" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">背包客小林</div>
                            <div class="post-time">5天前 · 旅行</div>
                        </div>
                    </div>
                    <h3 class="article-title">云南小众旅行地：避开人潮的秘境探索</h3>
                    <p class="article-excerpt">介绍云南几个尚未过度开发的小众旅行地，适合喜欢安静、深度体验当地文化的旅行者。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 1.7k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 89
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 456
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 单图文章 -->
            <div class="article-card">
                <div class="article-image">
                    <img src="https://picsum.photos/600/400?random=20" alt="绘画艺术" class="w-100 h-100 object-cover">
                </div>
                <div class="article-content">
                    <div class="article-author">
                        <img src="https://picsum.photos/100/100?random=113" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">美术老师莎莎</div>
                            <div class="post-time">1周前 · 艺术</div>
                        </div>
                    </div>
                    <h3 class="article-title">零基础水彩入门：掌握这3个技巧就能画出好看的风景画</h3>
                    <p class="article-excerpt">针对水彩初学者的实用指南，不需要任何绘画基础，掌握这几个简单技巧，就能快速入门并画出令人满意的作品。</p>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i> 2.3k
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i> 124
                        </div>
                        <div class="article-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i> 567
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-5">
            <button class="btn btn-outline-primary px-5 py-2">
                <i class="fas fa-spinner fa-spin me-2" style="display: none;"></i>
                加载更多
            </button>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 布局切换功能
        document.querySelectorAll('.layout-tabs .nav-link').forEach(tab => {
            tab.addEventListener('click', function() {
                // 更新标签激活状态
                document.querySelectorAll('.layout-tabs .nav-link').forEach(t => {
                    t.classList.remove('active');
                });
                this.classList.add('active');
                
                // 隐藏所有布局
                document.querySelectorAll('.layout-container').forEach(container => {
                    container.style.display = 'none';
                });
                
                // 显示选中的布局
                const layout = this.getAttribute('data-layout');
                document.querySelector(`.${layout}-layout`).style.display = 'block';
            });
        });
        
        // 分类筛选功能
        document.querySelectorAll('.category-chip').forEach(chip => {
            chip.addEventListener('click', function() {
                document.querySelectorAll('.category-chip').forEach(c => {
                    c.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加实际筛选逻辑
                const category = this.textContent;
                console.log('筛选分类:', category);
            });
        });
        
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                this.classList.toggle('liked');
                const icon = this.querySelector('i');
                const countText = this.textContent.trim();
                const count = parseInt(countText.match(/\d+/)[0]);
                
                if (this.classList.contains('liked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.innerHTML = `<i class="fas fa-heart"></i> ${count + 1}`;
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.innerHTML = `<i class="far fa-heart"></i> ${count - 1}`;
                }
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.save-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                this.classList.toggle('saved');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('saved')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    if (this.textContent.includes('收藏')) {
                        this.innerHTML = `<i class="fas fa-bookmark"></i> 已收藏`;
                    }
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    if (this.textContent.includes('已收藏')) {
                        this.innerHTML = `<i class="far fa-bookmark"></i> 收藏`;
                    }
                }
            });
        });
        
        // 加载更多功能
        document.querySelector('.btn-outline-primary.px-5').addEventListener('click', function() {
            const spinner = this.querySelector('.fa-spinner');
            spinner.style.display = 'inline-block';
            this.disabled = true;
            
            // 模拟加载延迟
            setTimeout(() => {
                spinner.style.display = 'none';
                this.disabled = false;
                // 这里可以添加实际加载更多逻辑
            }, 1500);
        });
    </script>
</body>
</html>
    
